package com.atguigu.client;

import com.atguigu.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "shop-seckill")
public interface SeckillFeignClient {

    //1.查询所有秒杀商品
    @GetMapping("/seckill/queryAllSeckillProduct")
    public RetVal queryAllSeckillProduct();

    //2.根据skuId 获取秒杀对象数据
    @GetMapping("/seckill/getSeckillProductBySkuId/{skuId}")
    public RetVal getSeckillProductBySkuId(@PathVariable Long skuId);

    //6.返回秒杀确认页面需要的数据信息
    @GetMapping("/seckill/seckillConfirm")
    public RetVal seckillConfirm();
}
